From: YAMAMOTO Mitsuharu Date: Sat, 11 Aug 2007 02:06:25 +0000 (+0000) Subject: (x_draw_image_glyph_string): Adjust stipple origin when X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~534^2~3^2~1848 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=eb80757c113e4bf8f705c98bc34c53e68df19abe;p=emacs.git (x_draw_image_glyph_string): Adjust stipple origin when filling pixmap with stippled background. --- diff --git a/src/xterm.c b/src/xterm.c index 00d653fc19f..512fff35f50 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -2476,9 +2476,11 @@ x_draw_image_glyph_string (s) { /* Fill background with a stipple pattern. */ XSetFillStyle (s->display, s->gc, FillOpaqueStippled); + XSetTSOrigin (s->display, s->gc, - s->x, - s->y); XFillRectangle (s->display, pixmap, s->gc, 0, 0, s->background_width, s->height); XSetFillStyle (s->display, s->gc, FillSolid); + XSetTSOrigin (s->display, s->gc, 0, 0); } else {